<?php 
require_once("include/authority.php");
require_once("include/client.php");
if(!Authority::is_login())
  {
    die('');
  }
$username = $_COOKIE['username'];
if(!isset($username))
  {
    die('');
  }
echo JSON_encode(Client::get_checkout_history($username));
?>